package UIUtils
{
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	
	public class uif_JSONLoader extends URLLoader {
		private var _sourceURL: String;
		public function uif_JSONLoader(request:URLRequest=null) {
			super(request);
		}
		
		public function get jsonData(): Object {
			return uif_json.d(data as String);
		}
		
		override public function load(request:URLRequest):void {
			_sourceURL = request.url;
			super.load(request);
		}
		
		public function get sourceURL(): String {
			return _sourceURL;
		}
	}
}